import {Suspense} from 'react'
import Loading from '../components/loading'
const routerHOC=(Com)=>{
    return <Suspense fallback={<Loading/>}>
        {Com}
    </Suspense>

}

export default routerHOC;